<script>
_h=h= Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var sWidth = parseInt((window.innerWidth > 0) ? window.innerWidth : screen.width);
if(sWidth>750){sWidth=750;}
var _rate=(sWidth/750);
if(h<_rate*1206){h=_rate*1206;}
var _img=['d.png','j.png','y.png'];
var loader = new PxLoader();
for(var i=0; i<_img.length; i++){loader.addImage('<?php echo $cdnUrl; ?>/img/p/'+_img[i]);}
for(var i=0; i<5; i++){
	loader.addImage('<?php echo $cdnUrl; ?>img/p/'+i+'.png');
}
for(var i=6;i<19; i++){
	loader.addImage('<?php echo $cdnUrl; ?>img/p/'+i+'.png');
}
loader.start();

var _hyuFlag=false;
function _feiyu(){
	if(true == _hyuFlag){return;}
	$(".home-y1").addClass("backInLeft animated2").show();
	$(".home-y2").addClass("backInRight animated2").show();
	window.setTimeout(function(){
		$(".home-y1, .home-y2").fadeOut(3000);
		$(".home-y1").removeClass("backInLeft animated2");
		$(".home-y2").removeClass("backInRight animated2");
        window.setTimeout(function(){
        	$(".home-y1, .home-y2").hide();
    				_feiyu();
         }, 4100);
		
	}, 2200);
}

var _percent=0;
function _runL(){
	_percent=_percent+5;
	console.log(_percent)
	$('.l-b2').width(_percent+'%');
	if(_percent > 98){
		$('.l-b2').width('100%');
		window.setTimeout(function(){
			$(".l").fadeOut();
			$(".home").show().addClass("fade-in");
			_feiyu();
	        return;   
			}, 200);
    }else{
		window.setTimeout(function(){_runL();}, 100);
	}
}

var _mbgFlag=false;
var _mbg=document.getElementById("mbg");
_mbg.volume=0.2;
loader.addCompletionListener(function(e){
	   $(".music").addClass("gorotate");
	   _mbgFlag=true;
	    _mbg.play();
	    document.addEventListener("WeixinJSBridgeReady", function () {
	    	_mbg.play();
	    }, false);
	    //$(".pao, .t-bg, .yib").fadeIn();
       
});



var _mc1=document.getElementById("mc1");
 
var _shuzi=4;
var _yuNum=0;
var _lingStep='game';
function _countM(){
	_shuzi--;
	if(_shuzi < 0){
	  var _tmpYuNum=_yuNum;
	  if(_yuNum < 10){_tmpYuNum="0"+_yuNum;}
	  $(".jshu-txt").html(_tmpYuNum);
	  $(".pao-txt").html("00:00:00");
	  $(".t-bg, .jshu").fadeIn();
	  $.post("./api/?c=yu", {n:_yuNum}, function(data){}, "json");
	  return;
    }
    var _tmpShuZi=_shuzi;
    if(_shuzi < 10){_tmpShuZi='0'+_shuzi}
	$(".pao-txt").html("00:00:"+_tmpShuZi);
	window.setTimeout(function(){_countM()},1000);
}
$(".dao-num").hide();
function _countD(){
	_shuzi--;
	if(_shuzi < 1){
	  $(".dao-num").html(1);
	  $(".dao, .t-bg").fadeOut();
	  _shuzi=15;
	  $(".hua").addClass("goFade animate3");
	  window.setTimeout(function(){_countM()},1500);
	  return;
    }
	$(".dao-num").hide().addClass("animate5 gopul");
	$(".dao-num").show().html(_shuzi);
	window.setTimeout(function(){$(".dao-num").removeClass("animate5 gopul");_countD()},1000);
}

$(function(){   // 750 1448 px
	$('.container, .hai, .p-b').width(sWidth).height(h);
	$('.the-bg, .p-b, .home-bg').width(sWidth).height(_rate*1206);
	$('.music').width(_rate*98).height(_rate*98).css({"top":_rate*20, "right":_rate*20});
	$('.l-yin').width(_rate*112).height(_rate*26).css({"top":_rate*644, "left":_rate*328});
	$('.l-q').width(_rate*114).height(_rate*116).css({"top":_rate*546, "left":_rate*326}); 
	$('.l-b').width(_rate*497).height(_rate*35).css({"top":_rate*760, "left":_rate*132});
	$('.home-t2').width(_rate*465).height(_rate*144).css({"top":_rate*412, "left":_rate*148});
	$('.home-t3').width(_rate*97).height(_rate*403).css({"top":_rate*165, "right":0});
	$('.home-s').width(_rate*352).height(_rate*178).css({"top":_rate*1000, "left":_rate*216});
	$('.home-rule').width(_rate*120).height(_rate*210).css({"top":_rate*160, "right":0});
	$('.home-zai').width(_rate*120).height(_rate*210).css({"top":_rate*370, "right":0});
	$('.home-y1').width(_rate*510).height(_rate*474).css({"top":_rate*420, "left":0});
	$('.home-y2').width(_rate*488).height(_rate*438).css({"top":_rate*760, "right":-_rate*108});
	$('.home-bai').width(_rate*266).height(_rate*332).css({"top":_rate*576, "left":0});
	$('.home-z1').width(_rate*310).height(_rate*285).css({"top":_rate*610, "left":0});
	$('.home-z2').width(_rate*257).height(_rate*203).css({"top":_rate*718, "left":_rate*240});
	$('.home-z3').width(_rate*178).height(_rate*158).css({"top":_rate*308, "left":0});
	$('.home-z4').width(_rate*58).height(_rate*55).css({"top":_rate*478, "left":_rate*54});
	$('.home-z5').width(_rate*53).height(_rate*52).css({"top":_rate*686, "left":_rate*434});
	$('.home-z6').width(_rate*33).height(_rate*32).css({"top":_rate*752, "left":_rate*512});

	$('.home-j1').width(_rate*286).height(_rate*208).css({"top":_rate*914, "left":-_rate*102});
	$('.home-j2').width(_rate*189).height(_rate*98).css({"top":_rate*526, "right":-_rate*58});
	 
	$('.zai-list').height(_rate*280).css({"top":_rate*428});
	$('.pt-t1').height(_rate*205);
	$('.pt-qr').width(_rate*110).height(_rate*110).css({"top":_rate*82, "left":_rate*40});
	$('.pao-dao').width(_rate*510).height(_rate*123).css({"top":0, "left":0});
	$('.pao-txt').height(_rate*80).css({"top":_rate*44, "left":_rate*244,'line-height':_rate*80+'px'});
	$('.p-q').width(_rate*100).height(_rate*90).css({"left":_rate*10});
	$('.ppq, .phq').width(_rate*82).height(_rate*82);
	$('.hua').width(_rate*90).height(_rate*90);
	
	
	$('.tip-close, .tip-clos2, .tip-clos3, .tip-clos4, .tip-clos5, .tip-clowu').width(_rate*140).height(_rate*150);
	$('.tip-close').css({"top":_rate*90, "left":_rate*550});
	$('.tip-clos2').css({"top":_rate*90, "left":_rate*600});
	$('.tip-clos3').css({"top":_rate*190, "left":_rate*608});
	$('.tip-clos4').css({"top":_rate*366, "left":_rate*596});
	$('.tip-clos5').css({"top":_rate*50, "left":_rate*550});
	$('.tip-clowu').css({"top":_rate*386, "left":_rate*596});
	 
	$('.pt-share').width(_rate*178).height(_rate*192).css({"top":0, "right":0});
	
 
	$('.pao-list').width(_rate*710).css({"top":_rate*132, "left":_rate*28});


	$('.l').hide().css({"opacity":1});
	$(".l").fadeIn();
    _runL();
	
	if(h > _rate*1206){
		   var _cha= (h - _rate*1306)/2;
		   if(_cha > 0){
		      $('.the-bg').css({"top":_cha});
		      $('.home-bg').css({"top":_cha/2});
		      $('.logo').css({"top":_cha/1.1});
		      $(".home .p-b").height(h).attr("src","<?php echo $cdnUrl ?>img/home-x.jpg?v=3"); 
		      $(".pt-bg").height(h).attr("src","<?php echo $cdnUrl ?>img/post-x.jpg?v=2"); 
		      $('.pt-share').css({"top":(_rate*40)});
		      $('.home-y1').css({"top":_rate*520});
		  	  $('.home-y2').css({"top":_rate*840});
		  	  $('.home-s').css({"top":_rate*1100});
		  	  $('.home-bai').css({"top":_rate*676});
		  	  $('.home-z1').css({"top":_rate*710});
    		  $('.home-z2').css({"top":_rate*818});
    		  
    		  $('.home-z3').css({"top":_rate*408});
    		  $('.home-z4').css({"top":_rate*578});
    		  $('.home-z5').css({"top":_rate*786});
    		  $('.home-z6').css({"top":_rate*852});
    		  $('.home-j1').css({"top":_rate*1014});
    		  $('.home-j2').css({"top":_rate*626});
    			 

		      $('.pao-list').css({"top":(_rate*150)});
		      var _chaTwo=(h-_rate*1240);
		      if(_chaTwo > 1){
		    	  $(".p-q").height(_rate*90+_chaTwo/14);
			  }
			}
		}

	function _resize(){
		var _cha=(h - _rate*700)/2;
		$('.dao-t1').height(_rate*630).css({"top":_cha, "left":0});
		_cha=(h - _rate*830)/2;
		$('.zai-t1').height(_rate*830).css({"top":_cha, "left":0});
		_cha=(h - _rate*982)/2;
		$('.ruel-t1').height(_rate*982).css({"top":_cha, "left":0});
		_cha=(h - _rate*600)/2;
		$('.wen-t1').height(_rate*536).css({"top":_cha, "left":0});
		$('.wen-btn').width(_rate*490).height(_rate*110).css({"top":_rate*420, "left":_rate*130});
		 
		_cha=(h - _rate*892)/2;
		$('.tzj-t1').height(_rate*892).css({"top":_cha, "left":0});
		$('#u-n, #u-p, #u-s').width(_rate*310).height(_rate*58);
		$('#u-n').css({"top":_rate*254, "left":_rate*286});
		$('#u-p').css({"top":_rate*332, "left":_rate*286});
		$('#u-s').css({"top":_rate*412, "left":_rate*286});
		$('.tzj-btn').width(_rate*440).height(_rate*110).css({"top":_rate*788, "left":_rate*160});
		  
		_cha=(h - _rate*608)/2;
		$('.jshu-t1').height(_rate*608).css({"top":_cha, "left":0});
		$('.jshu-txt').width(_rate*210).height(_rate*106).css({"top":_rate*262, "left":_rate*170,'line-height':_rate*106+'px'});
		$('.jshu-ling').width(_rate*490).height(_rate*110).css({"top":_rate*480, "left":_rate*130});
		_cha=(h - _rate*853)/2;
		$('.xxj-t1').height(_rate*853).css({"top":_cha, "left":0});
		$('.xxj-btn').width(_rate*460).height(_rate*110).css({"top":_rate*728, "left":_rate*150});
		_cha=(h - _rate*910)/2;
		$('.wu-t1').height(_rate*910).css({"top":_cha, "left":0});
		$('.wu-btn').width(_rate*460).height(_rate*150).css({"top":_rate*720, "left":_rate*150});
		
		
		_cha=(h - _rate*900)/2;
		$('.yib-t1').height(_rate*848).css({"top":_cha, "left":0});
		$('.yib-btn').width(_rate*460).height(_rate*150).css({"top":_rate*720, "left":_rate*150});
	 
		_cha=(h - _rate*900)/2;
		$('.share-t1').height(_rate*836).css({"top":_cha, "left":0});
	 

		$('.dao-num').width(_rate*220).height(_rate*110).css({"top":_rate*64, "left":_rate*264,'line-height':_rate*100+'px'});
		
    }
	window.setTimeout(function(){
		_resize();
		},1500);
	

	
	var yinId=1;
	//pc
	$(".p-q").on("touchend",function(){
	   var _num=$(this).attr("data-n");
	   if('lock' == _num){return false;}
	   _yuNum++;
	   //$(".mc1").attr("src","");
	   //$(".mc1").attr("src","c.mp3");
	   _mc1.play();
	   $(this).children(".hua").show(); 
	   $(this).children(".phq").show();
	   $(this).attr("data-n",'lock');
		if(_yuNum > 83){
			$(".jshu-txt").html(_yuNum);   
			$(".t-bg, .jshu").fadeIn();
		}
	});

	$('.tzj-btn').bind("click",function(){
		var _n=$("#u-n").val();
        var _lx=$("#u-p").val();
        var _sf=$("#u-s").val();
        if('' == _n){_popMsg('请输入姓名');return;}
		if('' == _lx){_popMsg('请输入联系方式');return;}
		var _tmpa=_lx.substr(0, 1);
		if(_tmpa == _lx.substr(1, 1) && _tmpa == _lx.substr(2, 1) && _tmpa == _lx.substr(3, 1)){
        	_popMsg('请输入正确联系方式');return;
        }
		if(_lx.length < 9 || _lx.length > 11){_popMsg('请输入正确联系方式');return;}
		if('' == _sf){_popMsg('请输入身份证');return;}
		if(10 > _sf.length){_popMsg('请输入有效身份证');return;}
		_tmpa=_sf.substr(0, 1);
        if(_tmpa == _sf.substr(1, 1) && _tmpa == _sf.substr(2, 1) && _tmpa == _sf.substr(3, 1)){
        	_popMsg('请输入有效身份证');return;
        }
   	    $.post("./api/?c=uin", {n:_n,lx:_lx,sf:_sf}, function(data){
            $(".tzj").fadeOut();
            if('zai' == _lingStep){
            	_openZai();
            }else{
            	$(".pt-t2").attr("src","<?php echo $cdnUrl; ?>img/pt3.png");
            	$(".post").fadeIn();
            }
            
       	}, "json");
	});
	$(".js_dialog").click(function(){
        $(".js_dialog").hide();
	 });
	function _popMsg(msg){$(".weui-msg").html(msg);$(".js_dialog").show();}

	var _lineNum=[1,2,3,4,5,6,7,8,9,10,11];
	var _fei=[];
	var _feiName=[1,2,3,4,6,7,8];
	var _lastName=[9,10,11,12,13,14,15,16,17,18];
	var _kongName=['y','y','y','y','y','y','y','y','y','y','y','y','y','y','y',
		'j','j','j','j','j','j','j','j','j','j','j','j','j','j','j',
		'd','d','d','d','d','d','d','d','d','d','d','d','d','d','d','d','d','d','d','d'];
	function _initPao(){
		_shuzi=4;
		_yuNum=0;
		$(".p-q").attr("data-n",0);
		$(".ppq").attr("src","./img/q.png");
		$(".phq").hide().attr("src","./img/q.png");
		var num = Math.floor(Math.random() * 10) + 1;
		var _a=(num-1)*7 +1;
		var _b=_a+3;
		var _c=_b+8;
		var _d=_c+2;
		for(var i=_a;i<=_b;i++){
			_fei.push(i);
		}
		for(var i=_c;i<=_d;i++){
			_fei.push(i);
		}
		console.log(num);
		console.log(_fei);
        for(var i=0;i<7;i++){
            $(".p-"+_fei[i]).attr("data-n",_feiName[i]);
        }
		
		var _newLine=[];
		for(var i=1;i<11;i++){
			if(i != num && i != (num+1)){
				_newLine.push(i);
			}
		}
		_lineNum=shuffle(_newLine);
		console.log(_lineNum);
		

		//_lastName
		var _lastId=0;
		
		var _getLineId=_lineNum.pop();
		var _five = Math.floor(Math.random() * 5) + 1;
		var _a=(_getLineId-1)*7 +_five;
		for(var i=_a;i<=(_a+2);i++){
			$(".p-"+i).attr("data-n",_lastName[_lastId]);
			_lastId++;
			console.log(i);
		}

		_getLineId=_lineNum.pop();
		_five = Math.floor(Math.random() * 5) + 1;
		_a=(_getLineId-1)*7 +_five;
		for(var i=_a;i<=(_a+2);i++){
			$(".p-"+i).attr("data-n",_lastName[_lastId]);
			_lastId++;
			console.log(i);
		}

		_getLineId=_lineNum.pop();  //2个字
		_five = Math.floor(Math.random() * 6) + 1;
		_a=(_getLineId-1)*7 +_five;
		for(var i=_a;i<=(_a+1);i++){
			$(".p-"+i).attr("data-n",_lastName[_lastId]);
			_lastId++;
		}

		_getLineId=_lineNum.pop();  //2个字
		_five = Math.floor(Math.random() * 6) + 1;
		_a=(_getLineId-1)*7 +_five;
		for(var i=_a;i<=(_a+1);i++){
			$(".p-"+i).attr("data-n",_lastName[_lastId]);
			_lastId++;
		}

		var _kong=[];//空白格子
		$(".p-q").each(function(){
			var _getN=$(this).attr("data-n");
	        if(0 == _getN){
	        	_kong.push($(this).attr("data-id"));
			}
	    });
		_kong=shuffle(_kong);

		for(var i=0;i<_kongName.length;i++){
			$(".p-"+_kong[i]).attr("data-n",_kongName[i]);
			console.log(_kongName[i]);
		}

		$(".phq").css({"opacity":1});
		$(".p-q").each(function(){
			var _getId=$(this).attr("data-id");
			var _num=$(this).attr("data-n");
			console.log('p-q'+_getId);
			if(0 != _num){
				$(this).children(".phq").attr("src","<?php echo $cdnUrl; ?>img/p/"+_num+".png");
			}else{
				$(this).children(".phq").css({"opacity":.8}).attr("src","./img/q2.png");
			}
	    });
		$(".hua").removeClass("goFade animate3").hide();
		
		
    }
	function shuffle(array){
		  //let array = this;
		  let len = array.length;
		  for (let i = len - 1; i > 0; i--) {
		    let j = Math.floor(Math.random() * (i + 1));
		    [array[i], array[j]] = [array[j], array[i]];
		  }
		  return array;
	}
 
	$('.tip-close, .tip-clos2, .tip-clos3, .tip-clos4, .tip-clos5').bind("click",function(){
		$(".t-bg, .zai, .rule, .wen, .tzj, .xxj, .pao").fadeOut();
		$(".home").fadeIn();
		$(".home-y1").removeClass("backInLeft animated2");
		$(".home-y2").removeClass("backInRight animated2");
		_hyuFlag=false;
		_feiyu();
		
	});
	$('.tip-clos2, .tip-clowu').bind("click",function(){
		$(".t-bg, .zai, .rule, .wen, .tzj, .xxj, .pao, .wu, .yib").fadeOut();
		$(".home").fadeIn();
		$(".home-y1").removeClass("backInLeft animated2");
		$(".home-y2").removeClass("backInRight animated2");
		_hyuFlag=false;
		_feiyu();
	});
	function _openZai(){
		var _html='';
		$.post("./api/?c=getzai", {id:2}, function(data){
			$(data).each(function(key,value){
				 console.log(value);
				 _html+='<div class="zai-li"><img class="zai-ld" src="<?php echo $cdnUrl; ?>img/zai-'+value.j+'.png" /><img class="zai-'+value.l+'" data-s="'+value.id+'" src="<?php echo $cdnUrl; ?>img/zai-'+value.l+'.png" /></div>';
			 });
			$(".zai-list").html(_html);
			$('.zai-li').height(_rate*93);
			$('.zai-ld').width(_rate*606).height(_rate*93);
			$('.zai-qu, .zai-y').width(_rate*158).height(_rate*94).css({"top":0, "left":_rate*450});
			$(".t-bg, .zai").fadeIn();
			$(".zai-qu").click(function(){
                var _lid=$(this).attr("data-s");
                var _this=$(this);
                _lingStep='zai';
                $.post("./api/?c=zailing", {id:_lid}, function(data){
                    if(2 == data.s){
                        $(".zai").fadeOut();
                        $(".t-bg, ."+data.t).fadeIn();
                    }
                    if(3 == data.s){
                        if('wu' == data.t){
                        	_shot2(_lid);
                        }
                        if('yib' == data.t){
                        	_shota(_lid);
                        }
                    }
                     console.log(data)
                 }, "json");   
			});
		}, "json");
	}
	$('.home-zai').bind("click",function(){
		_openZai();
	});
	$('.home-rule').bind("click",function(){
		$(".t-bg, .rule").fadeIn();
	});

	$('.home-s').bind("click",function(){
		_lingStep='game';
		_hyuFlag=true;
		$(".home").fadeOut();
		$(".pao, .t-bg, .dao").fadeIn();
		_initPao();
		_countD(); 
	});

	$('.jshu-ling').bind("click",function(){
		$.post("./api/?c=ling", {id:_yuNum}, function(data){
			if('less' == data.s){
				$(".jshu").fadeOut();
				$(".t-bg, .wen").fadeIn();
               return;
			}
			if('ok' == data.s){
				$(".jshu").fadeOut();
				$(".t-bg, ."+data.j).fadeIn();
		    }
   	    }, "json");
	});
	$('.xxj-btn').bind("click",function(){
		$(".xxj").fadeOut();
		$(".tzj").fadeIn();
	});
	$('.wen-btn').bind("click",function(){
		$(".wen").fadeOut();
		$(".share").fadeIn();
	});

	$('.share').bind("click",function(){
		$(".share, .t-bg").fadeIn();
	});
	function _shot2(lid){
		$.post("./api/?c=shot2", {id:2}, function(data){
            if('go' == data.s){
            	if('game' == _lingStep){
            		$(".wu").fadeOut();
            		$(".pt-t2").attr("src","<?php echo $cdnUrl; ?>img/pt1.png");
         	    	$(".post").fadeIn();
                }
               	 wx.addCard({
                 	      cardList: [
                 	        {
                 	          cardId: data.c.cid,
                 	          cardExt: '{"code": "'+data.c.code+'", "openid": "<?php echo $openid; ?>", "timestamp": "'+data.c.timestamp+'", "signature":"'+data.c.sign+'"}'
                 	        }
                 	      ],
                 	      success: function (res) {
                 	        $.post("./api/?c=code2", {lid:lid,thecode:data.c.code,code:res.cardList[0].code,cid:data.c.cid}, function(data){
                 	        	if('zai' == _lingStep){
                 	        		$(".zai, .t-bg").hide();
                                    _openZai();      
                     	        }
                     	        }, "json");
                 	      },
                 	      cancel: function (res) {
                 	        //alert(JSON.stringify(res))
                 	      }
                 	    });
             }
         }, "json");
    }
	function _shota(lid){
		$.post("./api/?c=shota", {id:2}, function(data){
            if('go' == data.s){
            	if('game' == _lingStep){
            		$(".yib").fadeOut();
            		$(".pt-t2").attr("src","<?php echo $cdnUrl; ?>img/pt2.png");
         	    	$(".post").fadeIn();
                }
               	 wx.addCard({
                 	      cardList: [
                 	        {
                 	          cardId: data.c.cid,
                 	          cardExt: '{"code": "'+data.c.code+'", "openid": "<?php echo $openid; ?>", "timestamp": "'+data.c.timestamp+'", "signature":"'+data.c.sign+'"}'
                 	        }
                 	      ],
                 	      success: function (res) {
                 	        $.post("./api/?c=codea", {lid:lid,thecode:data.c.code,code:res.cardList[0].code,cid:data.c.cid}, function(data){
                 	        	if('zai' == _lingStep){
                 	        		$(".zai, .t-bg").hide();
                                    _openZai();      
                     	        }
                     	        }, "json");
                 	      },
                 	      cancel: function (res) {
                 	        //alert(JSON.stringify(res))
                 	      }
                 	    });
             }
         }, "json");
    }
	
	$('.yib-btn').bind("click",function(){
		_shota('a');
	});
	$('.pt-share').bind("click",function(){
		 $(".post").fadeOut();
		 $(".share, .t-bg").fadeIn();
	});
	

	
	
	$('.wu-btn').bind("click",function(){_shot2('a');});

	$(".music").click(function(){
		if(true == _mbgFlag){
			_mbgFlag=false;
			_mbg.pause();
			$(".music").removeClass("gorotate").attr("src","./img/yin-off.png");
		 
	    }else{
	    	_mbgFlag=true;
	    	_mbg.play();
	    	$(".music").addClass("gorotate").attr("src","./img/yin.png");
		}
    });

	wx.config({
        appId: '<?php echo $signPackage["appId"];?>',timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'showMenuItems', 'hideMenuItems','addCard','chooseCard','openCard']
    });
    wx.ready(function () {
    		var _title='爆爆爆汁飞鱼籽，等你抱走豪横大奖';
    		var _desc='大娘水饺飞鱼籽饺全新上市！';
    		var _link='http://dnsj.mei94.com/j.php';
    		var _imgUrl='http://dnsj.mei94.com/img/6.jpg';
    			wx.onMenuShareTimeline({title: _desc, link: _link, imgUrl: _imgUrl,success: function () {
    				$.post("api/?c=share", {id:1}, function(data){}, "json");
    			},cancel: function () { 
    			}});
    			wx.onMenuShareAppMessage({ title: _title, desc: _desc,link: _link,imgUrl: _imgUrl, type: '', dataUrl: '', success: function () {
    				$.post("api/?c=share", {id:1}, function(data){}, "json");
    			},cancel: function () { 
    			}});
    });

	function _playVoice(yinId){
		if(yinId < 20){
		  if(1==yinId){_mc1.play();return}if(2==yinId){_mc2.play();return}if(3==yinId){_mc3.play();return}if(4==yinId){_mc4.play();return}if(5==yinId){_mc5.play();return}if(6==yinId){_mc6.play();return}if(7==yinId){_mc7.play();return}if(8==yinId){_mc8.play();return}if(9==yinId){_mc9.play();return}
		  if(10==yinId){_mc10.play();return}if(11==yinId){_mc11.play();return}if(12==yinId){_mc12.play();return}if(13==yinId){_mc13.play();return}if(14==yinId){_mc14.play();return}if(15==yinId){_mc15.play();return}if(16==yinId){_mc16.play();return}if(17==yinId){_mc17.play();return}if(18==yinId){_mc18.play();return}if(19==yinId){_mc19.play();return}
		}
		if(yinId > 19){
		   if(20==yinId){_mc20.play();return}if(21==yinId){_mc21.play();return}if(22==yinId){_mc22.play();return}if(23==yinId){_mc23.play();return}if(24==yinId){_mc24.play();return}if(25==yinId){_mc25.play();return}if(26==yinId){_mc26.play();return}if(27==yinId){_mc27.play();return}if(28==yinId){_mc28.play();return}if(29==yinId){_mc29.play();return}if(30==yinId){_mc30.play();return}if(31==yinId){_mc31.play();return}if(32==yinId){_mc32.play();return}if(33==yinId){_mc33.play();return}if(34==yinId){_mc34.play();return}if(35==yinId){_mc35.play();return}if(36==yinId){_mc36.play();return}if(37==yinId){_mc37.play();return}if(38==yinId){_mc38.play();return}if(39==yinId){_mc39.play();return}if(40==yinId){_mc40.play();return}if(41==yinId){_mc41.play();return}if(42==yinId){_mc42.play();return}if(43==yinId){_mc43.play();return}if(44==yinId){_mc44.play();return}if(45==yinId){_mc45.play();return}if(46==yinId){_mc46.play();return}if(47==yinId){_mc47.play();return}if(48==yinId){_mc48.play();return}if(49==yinId){_mc49.play();return}if(50==yinId){_mc50.play();return}if(51==yinId){_mc51.play();return}if(52==yinId){_mc52.play();return}if(53==yinId){_mc53.play();return}if(54==yinId){_mc54.play();return}if(55==yinId){_mc55.play();return}if(56==yinId){_mc56.play();return}if(57==yinId){_mc57.play();return}if(58==yinId){_mc58.play();return}if(59==yinId){_mc59.play();return}if(60==yinId){_mc60.play();return}if(61==yinId){_mc61.play();return}if(62==yinId){_mc62.play();return}if(63==yinId){_mc63.play();return}if(64==yinId){_mc64.play();return}if(65==yinId){_mc65.play();return}if(66==yinId){_mc66.play();return}if(67==yinId){_mc67.play();return}if(68==yinId){_mc68.play();return}if(69==yinId){_mc69.play();return}if(70==yinId){_mc70.play();return}if(71==yinId){_mc71.play();return}if(72==yinId){_mc72.play();return}if(73==yinId){_mc73.play();return}if(74==yinId){_mc74.play();return}if(75==yinId){_mc75.play();return}if(76==yinId){_mc76.play();return}if(77==yinId){_mc77.play();return}if(78==yinId){_mc78.play();return}if(79==yinId){_mc79.play();return}if(80==yinId){_mc80.play();return}if(81==yinId){_mc81.play();return}if(82==yinId){_mc82.play();return}if(83==yinId){_mc83.play();return}if(84==yinId){_mc84.play();return}
		}
	}
	 
});
</script>